<template>
	<el-card class="form-container">
		<el-form :model="orderConfigDetail" label-width="100px">
			<el-form-item label="" prop="id">
				<el-input v-model="userDetail.userNickName" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="订单支付超时关闭时间(分)" prop="orderPayOvertime">
				<el-input v-model="userDetail.userNickName" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="正常订单超时时间(分)" prop="normalOrderOvertime">
				<el-input v-model="userDetail.userNickName" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="发货后自动确认收货时间（天）" prop="confirmOvertime">
				<el-input v-model="userDetail.userNickName" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="自动完成交易时间，不能申请售后（天）" prop="finishOvertime">
				<el-input v-model="userDetail.userNickName" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="订单完成后自动好评时间（天）" prop="commentOvertime">
				<el-input v-model="userDetail.userNickName" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item label="拼团订单超时关闭时间(小时)" prop="assembleOrderOvertime">
				<el-input v-model="userDetail.userNickName" disabled="disabled"></el-input>
			</el-form-item>
			<el-form-item>
				<el-button @click="close">关闭</el-button>
			</el-form-item>
		</el-form>
	</el-card>
</template>

<script>
	import {
		findOrderConfigDetail
	} from '@/api/admin/orderConfig'
	export default {
		name: 'view-orderConfig',
		data() {
			return {
				orderConfigDetail: {}
			}
		},
		created() {
			this.view(this.$route.query.id)
		},
		methods: {
			view(val) {
				findOrderConfigDetail(val).then(res => {
					console.log('查询返回结果', res)
					this.userDetail = res.data.responseData
				})
			},
			close() {
				this.$router.go(-1)
			}
		}
	}
</script>

<style>
</style>
